import React, { Component } from 'react'
import {withRouter} from 'react-router-dom';

class ScrollToTopOnMount extends Component {
    componentDidMount() {
        window.scrollTo(0, 0)
    }

    render() {
        return null;
    }
}

export default withRouter(ScrollToTopOnMount);